# ================ 导入组件 =================
from django.urls import path
# ================= 导入drf 路由类 ================
from rest_framework.routers import DefaultRouter
# ================ 导入views =========================
from basicweb import views

# === 1. 实例化 =====
router = DefaultRouter()

# === 2. 注册views ======
router.register('branchs', views.BranchViews, basename="branchs")
router.register('branchareas', views.BranchAreaViews, basename="branchareas")
router.register('areaplaces', views.AreaPlaceViews, basename="areaplaces")
router.register('taskstatus', views.TaskStatusViews, basename="taskstatus")
router.register('tasktypes', views.TaskTypeViews, basename="tasktypes")
router.register('placetypes', views.PlaceTypeViews, basename="placetypes")

urlpatterns = [

]

#===== 3. 附加到urlpatterns ========
urlpatterns += router.urls
